package pers.course.week9;

import java.util.*;

class users {
    public String name;
    public double balance;
    public users(String Name, int Balance) {
        this.name = Name;
        this.balance = Balance;
    }
}

public class HashmapCase {
    public static void main(String[] args) {
        HashMap<Integer, users> map = new HashMap<Integer, users>();
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        for (int i = 0; i < num; i++) {
            int id = in.nextInt();
            String name = in.next();
            int balance = in.nextInt();
            users u = new users(name, balance);
            map.put(id, u);
        }
        Set<Integer> set = map.keySet();
        for (Integer key : set) {
            System.out.println("ID:" + key + ", Name:" + map.get(key).name + ", Balance:" + map.get(key).balance);
        }
    }
}
